/* Copyright 2011 Elektrobit Wireless Communications Oy (EB)


  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 2 as 
  published by the Free Software Foundation.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along
  with this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.


 *All rights reserved 
 *Version:Elektrobit_Qt_1.0.0_20110305 */


import Qt 4.7
import "qmlItem" 1.0
//import "./script/script.js" as Script

Item {
    width: 640
    height: 360

    Image{
        anchors.fill: parent
        source: backGroundImage()

    }

    RollBackButtons {
        id:rollBackButtons
        width: 120
        height: 360


        anchors.left: parent.left
        anchors.leftMargin: 0

        model: topCategory

    }

    Connections{
        target: rollBackButtons
        onButtonClicked:{
            onIconClick(index+1);
        }
    }


    MovieWall{
        width: 520
        height: 360
        flickY: 100
        id: movieWall
        backGroundAnimation: false

        anchors.left: rollBackButtons.right
        anchors.leftMargin: 0

        model: subCategory
        clip: true

    }

    BackButton {
        id:backButton
        x:560
        y:310
        width: 80
        height: 50
        //icon: "../images/sys/button_exit.png"
        buttonText: "back"
    }

    Connections {
        target: movieWall

        onCurrentItemClicked:{
            onSubIconClick(index);
        }
    }
    Connections{
        target: backButton
        onBackButtonClicked:{
            onIconClick("return");
        }
    }

}
